package swing_framework; 

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class ImagePanel extends JPanel{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
       
	private Image image=null;
	
	public ImagePanel(Image image){
		this.image=image;
	}
	
	protected void paintComponent(Graphics g){
		g.drawImage(image, 0, 8, this);
	}
}
 